<h1>Listing bets</h1>

<table>
  <tr>
    <th>Person</th>
    <th>Event</th>
    <th>Value</th>
  </tr>

<% @bets.each do |bet| %>
  <tr>
    <td><%= link_to bet.person.name, bet.person %></td>
    <td><%= bet.event %></td>
    <td><%= bet.value %></td>
    <td><%= link_to 'Show', bet %></td>
    <td><%= link_to 'Edit', edit_bet_path(bet) %></td>
    <td><%= link_to 'Destroy', bet, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New bet', new_bet_path %> |
<%= link_to 'People', people_path %>
